package cn.tedu.yuncharging.common.web;

import lombok.Getter;

@Getter
public enum ServiceCodeEnum {

    OK(1000,"操作成功"),
    BAD_REQUEST_NAME_EXIST(2000,"类别名称已存在"),

    ERROR_UNAUTHORIZED(4001,"验证为通过"),

    ERR_JWT_MALFORMED(6020,"JWT格式错误"),

    USER_STATE_DISABLE(7020,"用户被禁用"),

    USER_ADDRESS_ERROR(7021,"用户收货地址错误"),

    GOODS_NOT_EXIST(8000,"商品不存在"),

    GOODS_NOT_PUT_ON(8001,"商品已下架"),

    INSERT_ORDER_ERROR(9000, "订单保存失败，请稍后尝试");



    private Integer code;
    private String message;

    ServiceCodeEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

}
